package me.kingz.family.fiance.ui.home;

import android.arch.lifecycle.MutableLiveData;
import android.arch.lifecycle.ViewModel;

public class HomeViewModel extends ViewModel {

    private MutableLiveData<Boolean> drawerOpened = new MutableLiveData<>();

    public HomeViewModel(){
        super();
        drawerOpened.setValue(false);
    }

    public MutableLiveData<Boolean> isDrawerOpened(){
        return drawerOpened;
    }

    public void switchDrawer(){
        drawerOpened.setValue(!drawerOpened.getValue());
    }



}
